<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*子孙后代选择器，选择范围更广*/
       /* body div p{
            color: red;
        }*/
        /*子元素选择器，选择更精确*/
        div>div>p {
            color: green;
        }
        /*未访问状态*/
        a:link{
            color: red;
        }
        /*访问过*/
        a:visited{
            color: yellow;
        }
        /*悬停状态*/
        a:hover {
            color: pink;
        }
       /* 点击状态*/
        a:active{
            color: blue;
        }
    </style>
</head>
<body>
<a href="01文本相关.html">超链接1</a>
<a href="02列表标签.html">超链接2</a>
<a href="03简历练习.html">超链接3</a>
<p>p1</p>
<div>
    <p>p2</p>
    <div><p>p3</p></div>
    <div>
        <p>p4</p>
        <div><p>p5</p></div>
    </div>
</div>
</body>
</html>